package Demo05.Demo09;

public class Demo05_Test {
    public static void main(String[] args) {
        Demo05_Flower flower = new Demo05_Flower("白色",10) ;
        System.out.println("花的颜色是"+flower.getColor()+" 花的价格是"+flower.getPrice());
        Demo05_Rose rose = new Demo05_Rose("紫色",30);
        rose.setWhere("大理");
        System.out.println("玫瑰花的颜色是"+rose.getColor()+" 玫瑰花的价格是"+rose.getPrice());
        rose.warn();


    }

}
